<h1>Список партнеров</h1>
<div style="width:100%">
	{if $Partners->hasPaginate()}
		<div id="partners_paging_bottom" class="paging">
			{$Partners->showPager()}
			{literal}
				<script>
				    new Pager("partners_paging_top");
				</script>
			{/literal}
		</div>
	{/if}<br>
	<div class="table_body">
		<table class="text">
			<tr>
				<th>ID</th>
				<th>Описание (укороченное)</th>
				<th class="operations">&nbsp;</th>
			</tr>
			{foreach item=Partner from=$Partners}
			<tr>
				<th>{$Partner->getPk()}</th>
			    <td class="text">{$Partner->description|strip_tags|truncate:250}...</td>
			    <td class="mixed">
			        <A href="{$fvConfig->get('dir_web_root')}partners/edit/?id={$Partner->getPk()}" onclick="go('{$fvConfig->get('dir_web_root')}partners/edit/?id={$Partner->getPk()}'); return false;">
			        	<img src="{$fvConfig->get('dir_web_root')}img/edit_icon.png" title="редактировать" width="16" height="16">
			        </a>
			        <a href="javascript: void(0);" onclick="if (confirm('Вы действительно желаете удалить партнера?')) go('{$fvConfig->get('dir_web_root')}partners/delete/?id={$Partner->getPk()}'); return false;">
			        	<img src="{$fvConfig->get('dir_web_root')}img/delete_icon.png" title="удалить" width="16" height="16">
			        </a>
		       </td>
			</tr>
			{/foreach}
		</table>
	</div>
	{if $Partners->hasPaginate()}
		<div id="partners_paging_bottom" class="paging">
			{$Partners->showPager()}
			{literal}
				<script>
				    new Pager("partners_paging_bottom");
				</script>
			{/literal}
		</div>
	{/if}
	<div class="operation">
	    <a href="{$fvConfig->get('dir_web_root')}partners/edit/" onclick="go('{$fvConfig->get('dir_web_root')}partners/edit/'); return false;" class="add">добавить</a>
	    <div style="clear: both;"></div>
	</div>
</div>